package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "ps_function" , resultMap = "functionMap")
public class PsFunction implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("functionCode")
    private String functionCode;

    @TableField("functionName")
    private String functionName;

    @TableField(value = "creationTime",fill = FieldFill.INSERT)
    private Date creationTime;

    @TableField("createdBy")
    private String createdBy;

    @TableField(value = "lastUpdateTime",fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdateTime;

    @TableField("funcUrl")
    private String funcUrl;

    /**
     * 1为启用0为不启用
     */
    @TableField("isStart")
    private Integer isStart;

    @TableField("parentId")
    private Integer parentId;

    @TableField(exist = false)
    private List<PsFunction> children;

}
